package com.example.lib_audio.tools

object SongDuration {

    //137815 2m20s  120000+20*1000 = 140000
    //315089ms  5m15s 315000
    //1min -> 60s -> 60000ms
    fun dynamicDuration(current:Int,total:Int):String{
        return ""
    }

    fun staticDuration(total:Int):String{
        val min = if(total/60000 < 10) "0${total/60000}" else "${total/60000}"
        val s = "${(total - (total/100000)*100000)/1000}"
        return "${min}:${s}"
    }
}